<template>
  <div>
    <van-picker
      :title="title"
      show-toolbar
      :columns="columns"
      :value="value"
      @confirm="onConfirm"
      @cancel="onCancel"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: ''
    };
  },
  props: ['title', 'columns'],
  methods: {
    onConfirm() {
      this.$emit('fetchData', {
        value
      });
    },
    onCancel() {
      console.log('quxiao');
    }
  }
};
</script>

<style lang="scss" scoped>
<<<<<<< HEAD

=======
>>>>>>> 67661173bef05c6df3eef3160d0e8fcea9aa9c68
</style>
